home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 20
/
Aminet 20 (1997)(GTI - Schatztruhe)[!][Aug 1997].iso
/
Aminet
/
comm
/
www
/
CountryCodes.lha
/
countrycodes
/
CountryCodes.doc
< prev
next >
Wrap
Text File
|
1997-06-22
|
6KB
|
158 lines
CountryCodes v1.0 - Copyright 1997 by Paul Kolenbrander All Rights Reserved!
------------
DESCRIPTION:
------------
Welcome to CountryCodes. In our evergrowing InterNet, we start to wonder where
the people are located who'se e-mail we get and who'se pages we visit. It is
not hard to find that out, as most addresses have a suffix that denotes which
country. CountryCodes strives to make it easy for you to locate the cuntry in
question by inputting the suffix. It has an easy to use standard Amiga GUI and
requires no 3rd party libraries. All that is needed is for you to input the
suffix in the leftmost field and hit the RETURN key. In the rightmost field
the country associated with that suffix will then be shown. If you input an
invalid suffix, the program wil tell you as well. It does not matter of you
input the suffix in upper/lower case or with/without the period. Like .nl,
.NL, nl and NL are all allowed.
+---------------------------------------------------------------+
|o| CountryCodes v1.0, ©1997 Paul Kolenbrander | | |
+---------------------------------------------------------------+
| ______ ___________________________________________ |
| Suffix : |______||___________________________________________||
| |
+---------------------------------------------------------------+
| |
Input Suffix -----+ +----- Shows associated country.
It allows for a number of CLI parameters and Tooltypes. Which are:
'PUBSCREEN=' Enables you to specify a public screen CountryCodes is to open it's
window on. Default value for this parameter is the Workbench
screen. Usage: PUBSCREEN=Edit_screen.
'FONTNAME=' Specify the (fixed width) font to use. Usage: FONTNAME=Topaz.font
'FONTSIZE=' Specify the size of the font to use. Usage: FONTSIZE=11
'TOPEDGE=' Y position for the window to open on. Usage: TOPEDGE=10
'LEFTEDGE=' X position for the window to open on. Usage: LEFTEDGE=50
'ZOOMTOP=' X position of iconified window. Usage: ZOOMTOP=30
'ZOOMLEFT=' Y position of iconified window. Usage: ZOOMLEFT=20
---------------
AREXX COMMANDS:
---------------
Of course no Amiga program would complete without an ARexx Host. CountryCodes
is no exception to this rule. It has an extensive ARexx host allowing you to
activate, send to back, bring to front and move it's window. It also supports
the suffix being sent via ARexx instead of inputted directly. Allowing for the
construction of scripts that should easily interface with any mailer/newsreader
or WWW browser with ARexx support. The ARexx hostname for the program is COCO1.
Any subsequent hosts are named: COCOx (where x is a number).
LOCATE suffix - Locate the country associated with suffix.
WINDOW ACTIVATE - Activate the window.
WINDOW MOVE xval yval - Move the window. Always specify both the x and y
values. Eg. WINDOW MOVE 0 10.
WINDOW BACK - Push the window back.
WINDOW FRONT - Bring the window back to the front.
WINDOW POSITION - Returns the window x and y position as well as
it's width and height. Eg. '10 200 566 89'
QUIT - End the program.
To move CountryCodes window to front (assuming ARexx host is COCO1) :
rx 'ADDRESS COCO1 WINDOW FRONT'
To move CountryCodes window 50 pixels to the right and 10 down:
rx 'ADDRESS COCO1 WINDOW MOVE 50 10'
To find out which country is associated with eg. .nl:
rx 'ADDRESS COCO1 LOCATE nl'
And to end CountryCodes:
rx 'ADDRESS COCO1 QUIT'
Finally a small script to get the CountryCodes window position:
------------------------- Script Begin -------------------------
/* Get Window position */
options results
ADDRESS COCO1 WINDOW POSITION
say 'The CountryCodes window position is '||result
exit
-------------------------- Script End --------------------------
The program does send return codes that can be evaluated by your arexx
script to determine if the command was succesful.
-------------------------
DISTRIBUTION & COPYRIGHT:
-------------------------
CountryCodes is copyrighted by Paul Kolenbrander (paul@serena.iaehv.nl) and
all rights are reserved. It is distributed as giftware with a number of
distribution and usage limitations.
1. It is not public domain, but may be freely used by private persons.
If you feel it useful, a small token of your appreciation is always
welcome. I love Bundy rum, Toohey's Draught, Mounds and cashew nuts.
StarTrek related items are also very welcome. And I'd not say no to
a gift of a Mustang Convertible or a 'Vette. *being optimistic here*
2. It may not be bundled with any commercial program unless I receive
a full copy of said program for free.
3. It may not be bundled with any shareware program unless I receive
a full copy of said program for free.
4. It may not be distributed on any CD or magazine cover or by any
other means without first obtaining my written authorisation. The
AmiNet CD's hereby receive such authorisation.
5. Use by commercial or government organisations is subject to a
licensing fee. Contact the author for further information.
6. This document, unaltered, must always accompagny the CountryCodes
program.
-----------------
ARCHIVE CONTENTS:
-----------------
CountryCodes - The actual program.
CountryCodes.info - It's icon.
CountryCodes.doc - The documentation. This file.
CountryCodes.doc.info - It's icon.
extractsuffix.rexx - Generic example ARexx script.
awebextractsuffix.rexx - ARexx script for use with AWeb.
cedextractsuffix.rexx - ARexx script for use with CygnusEd 3.5.
----------------------
CONTACTING THE AUTHOR:
----------------------
Well, that's easy, take your pick:
E-Mail : paul@serena.iaehv.nl
Snailmail: Paul Kolenbrander
Postbus 5295
NL-5603 BD EINDHOVEN
THE NETHERLANDS